from nameko.rpc import rpc

class GenerateService(object):
    # 定义微服务名称
    name = "generate_service"

    @rpc
    def hello_world(self, msg):
        output = 'hello,I am been called by customer(消费者),返回消息：{}'.format(msg)
        print(output)
        # 返回结果
        return output
